package com.qiujie.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.poi.ss.formula.functions.T;

@Getter
@AllArgsConstructor
public enum AppErrorCodeEnum implements BaseEnum<T>{

    APPROVAL_FLOW_ERROR(4001, "审批流程配置错误"),
    APPROVER_NOT_FOUND(4002, "审批人未找到"),
    DUPLICATE_APPLY(4003, "存在待处理申请"),
    APPLICATION_NOT_FOUND(4004, "申请不存在"),
    SUBMIT_FAILED(4004, "申请提交失败"),

    STAFF_NOT_FOUND(4005, "员工不存在"),
    DEPT_NOT_FOUND(4006, "部门信息异常"),
    MINISTER_DUPLICATE(4007, "普通部门只能有一个部长"),
    MINE_LEADER_MINISTER_LIMIT(4008, "矿领导部门只能有一个部长"),
    ROLE_NOT_FOUND(4010, "角色不存在"),
    TEAM_LEADER_DUPLICATE(4011, "队伍只能有一个队长"),
    SPECIAL_ROLE_LIMIT(4009, "矿领导部门特殊角色已达上限"),
    INVALID_ROLE(5001, "非分管领导角色"),
    MINE_DEPT_NOT_FOUND(5002, "矿领导部门未配置"),;





    private final Integer code;
    private final String message;

}
